﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Threading;
using System.Globalization;

using Common;
using System.IO;

namespace CNCSoft.ErpApps.TMS.Counsellor
{
    public partial class frmTuVan : Form
    {
        public frmTuVan()
        {
            // Sets the UI culture to VietNamese (VietNam) / English
            if (GlobalVariable.WSInfo.Language == "Tiếng Việt")
                Thread.CurrentThread.CurrentUICulture = new CultureInfo("vi-VN");
            else if (GlobalVariable.WSInfo.Language == "English")
                Thread.CurrentThread.CurrentUICulture = new CultureInfo("en");

            InitializeComponent();
        }

        

        private void Navigate(String address)
        {
            if (String.IsNullOrEmpty(address)) return;
            if (address.Equals("about:blank")) return;
            if (!address.StartsWith("http://") &&
                !address.StartsWith("https://"))
            {
                address = "http://" + address;
            }
            try
            {
                webBrowser1.Navigate(new Uri(address));
            }
            catch (System.UriFormatException)
            {
                return;
            }
        }

                
        private void frmTuVan_Load(object sender, EventArgs e)
        {

        }

        private void link_LamQuen_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Navigate("http://www.cncaptech.edu.vn/TMS/VietAnh/Counsellor/lamquentimhieu.htm");
            
        }

        private void link_MajorKids_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Navigate("http://www.cncaptech.edu.vn/TMS/VietAnh/Counsellor/Major Kid.htm");
        }

        private void link_GiaoVienMajor_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Navigate("http://www.cncaptech.edu.vn/TMS/VietAnh/Counsellor/Giao vien Major.htm");
        }

        private void link_MajorTeens_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Navigate("http://www.cncaptech.edu.vn/TMS/VietAnh/Counsellor/Major Teen.htm");
        }

        private void link_CommunicativeEnglish_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Navigate("http://www.cncaptech.edu.vn/TMS/VietAnh/Counsellor/Communicative English.htm");
        }

        private void link_GeneralEnglish_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Navigate("http://www.cncaptech.edu.vn/TMS/VietAnh/Counsellor/General English.htm");
        }

        private void link_TOEIC_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Navigate("http://www.cncaptech.edu.vn/TMS/VietAnh/Counsellor/TOEIC.htm");
        }

        private void link_TOEICEco_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Navigate("http://www.cncaptech.edu.vn/TMS/VietAnh/Counsellor/TOEIC Eco.htm");
        }

        private void link_IELTS_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Navigate("http://www.cncaptech.edu.vn/TMS/VietAnh/Counsellor/IELTS.htm");
        }

        private void link_TOEFLiBT_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Navigate("http://www.cncaptech.edu.vn/TMS/VietAnh/Counsellor/TOEFL iBT.htm");
        }

        private void link_5LyDo_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Navigate("http://www.cncaptech.edu.vn/TMS/VietAnh/Counsellor/5 ly do hoc tieng Anh tai MAJOR.htm");
        }

        private void link_GioiThieuMajor_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Navigate("http://www.cncaptech.edu.vn/TMS/VietAnh/Counsellor/Gioi thieu Major.htm");
        }

        private void link_PhuongPhapGiangDay_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Navigate("http://www.cncaptech.edu.vn/TMS/VietAnh/Counsellor/Phuong phap giang day.htm");//????
        }

        private void link_NhanXetPHHS_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Navigate("http://www.cncaptech.edu.vn/TMS/VietAnh/Counsellor/Nhan xet hoc vien.htm");
        }

        private void link_HinhAnhClip_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Navigate("http://www.cncaptech.edu.vn/TMS/VietAnh/Counsellor/Gioi thieu Major.htm");
        }

        private void link_BangCap_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Navigate("http://www.cncaptech.edu.vn/TMS/VietAnh/Counsellor/Bang cap va doi tac.htm");
        }

        private void link_CSKhuyenHoc_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Navigate("http://www.cncaptech.edu.vn/TMS/VietAnh/Counsellor/Cac chuong trinh khuyen hoc.htm");
        }

        private void link_IELTSrefine_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Navigate("http://www.cncaptech.edu.vn/TMS/VietAnh/Counsellor/IELTS-refine.htm");
        }

        private void link_Summer_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Navigate("http://www.cncaptech.edu.vn/TMS/VietAnh/Counsellor/Summer.htm");
        }

        

        

        
    }
}
